home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / snowboard.swf / scripts / frame_1 / PlaceObject3_85_10 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2007-01-15  |  452b  |  25 lines

  1. onClipEvent(enterFrame){
  2.    _X = _X + xspeed2;
  3.    _Y = _Y + yspeed2;
  4.    if(!dragging)
  5.    {
  6.       _X = _X + xspeed / 9;
  7.       _Y = _Y + yspeed / 9.5;
  8.       xspeed /= friction / 2;
  9.       yspeed /= friction / 2;
  10.    }
  11.    else
  12.    {
  13.       xspeed2 -= oldx;
  14.       yspeed2 -= oldy;
  15.       oldx = _X;
  16.       oldy = _Y;
  17.    }
  18.    this.swapDepths(100);
  19.    if(var1 == 1)
  20.    {
  21.       _X = _root._xmouse - xx;
  22.       _Y = _root._ymouse - yy;
  23.    }
  24. }
  25.